Optimal. Leaf size=80 \[ -\frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \log \left (\frac {b c-a d}{b (c+d x)}\right )}{d i}-\frac {B n \text {Li}_2\left (\frac {d (a+b x)}{b (c+d x)}\right )}{d i} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {2543, 2458,
2378, 2370, 2352} \begin {gather*} -\frac {B n \text {PolyLog}\left (2,\frac {d (a+b x)}{b (c+d x)}\right )}{d i}-\frac {\log \left (\frac {b c-a d}{b (c+d x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{d i} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2352
Rule 2370
Rule 2378
Rule 2458
Rule 2543
Rubi steps
\begin {align*} \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{138 c+138 d x} \, dx &=\frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \log (138 c+138 d x)}{138 d}-\frac {(B n) \int \frac {(c+d x) \left (-\frac {d (a+b x)}{(c+d x)^2}+\frac {b}{c+d x}\right ) \log (138 c+138 d x)}{a+b x} \, dx}{138 d}\\ &=\frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \log (138 c+138 d x)}{138 d}-\frac {(B n) \int \left (\frac {b \log (138 c+138 d x)}{a+b x}-\frac {d \log (138 c+138 d x)}{c+d x}\right ) \, dx}{138 d}\\ &=\frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \log (138 c+138 d x)}{138 d}+\frac {1}{138} (B n) \int \frac {\log (138 c+138 d x)}{c+d x} \, dx-\frac {(b B n) \int \frac {\log (138 c+138 d x)}{a+b x} \, dx}{138 d}\\ &=-\frac {B n \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (138 c+138 d x)}{138 d}+\frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \log (138 c+138 d x)}{138 d}+(B n) \int \frac {\log \left (\frac {138 d (a+b x)}{-138 b c+138 a d}\right )}{138 c+138 d x} \, dx+\frac {(B n) \text {Subst}\left (\int \frac {138 \log (x)}{x} \, dx,x,138 c+138 d x\right )}{19044 d}\\ &=-\frac {B n \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (138 c+138 d x)}{138 d}+\frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \log (138 c+138 d x)}{138 d}+\frac {(B n) \text {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,138 c+138 d x\right )}{138 d}+\frac {(B n) \text {Subst}\left (\int \frac {\log \left (1+\frac {b x}{-138 b c+138 a d}\right )}{x} \, dx,x,138 c+138 d x\right )}{138 d}\\ &=\frac {B n \log ^2(138 (c+d x))}{276 d}-\frac {B n \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (138 c+138 d x)}{138 d}+\frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \log (138 c+138 d x)}{138 d}-\frac {B n \text {Li}_2\left (\frac {b (c+d x)}{b c-a d}\right )}{138 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 101, normalized size = 1.26 \begin {gather*} \frac {\log (i (c+d x)) \left (2 A-2 B n \log \left (\frac {d (a+b x)}{-b c+a d}\right )+2 B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+B n \log (i (c+d x))\right )-2 B n \text {Li}_2\left (\frac {b (c+d x)}{b c-a d}\right )}{2 d i} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.20, size = 0, normalized size = 0.00 \[\int \frac {A +B \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )}{d i x +c i}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {A}{c + d x}\, dx + \int \frac {B \log {\left (e \left (\frac {a}{c + d x} + \frac {b x}{c + d x}\right )^{n} \right )}}{c + d x}\, dx}{i} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 563 vs. \(2 (74) = 148\).
time = 52.91, size = 563, normalized size = 7.04 \begin {gather*} -\frac {1}{2} \, {\left (\frac {{\left (i \, B b^{3} c^{3} n - 3 i \, B a b^{2} c^{2} d n + 3 i \, B a^{2} b c d^{2} n - i \, B a^{3} d^{3} n\right )} \log \left (\frac {b x + a}{d x + c}\right )}{b^{2} d - \frac {2 \, {\left (b x + a\right )} b d^{2}}{d x + c} + \frac {{\left (b x + a\right )}^{2} d^{3}}{{\left (d x + c\right )}^{2}}} + \frac {-i \, B b^{4} c^{3} n + 3 i \, B a b^{3} c^{2} d n + \frac {{\left (i \, b x + i \, a\right )} B b^{3} c^{3} d n}{d x + c} - 3 i \, B a^{2} b^{2} c d^{2} n - \frac {3 \, {\left (i \, b x + i \, a\right )} B a b^{2} c^{2} d^{2} n}{d x + c} + i \, B a^{3} b d^{3} n - \frac {3 \, {\left (-i \, b x - i \, a\right )} B a^{2} b c d^{3} n}{d x + c} + \frac {{\left (-i \, b x - i \, a\right )} B a^{3} d^{4} n}{d x + c} + i \, A b^{4} c^{3} + i \, B b^{4} c^{3} - 3 i \, A a b^{3} c^{2} d - 3 i \, B a b^{3} c^{2} d + 3 i \, A a^{2} b^{2} c d^{2} + 3 i \, B a^{2} b^{2} c d^{2} - i \, A a^{3} b d^{3} - i \, B a^{3} b d^{3}}{b^{3} d - \frac {2 \, {\left (b x + a\right )} b^{2} d^{2}}{d x + c} + \frac {{\left (b x + a\right )}^{2} b d^{3}}{{\left (d x + c\right )}^{2}}} - \frac {{\left (-i \, B b^{3} c^{3} n + 3 i \, B a b^{2} c^{2} d n - 3 i \, B a^{2} b c d^{2} n + i \, B a^{3} d^{3} n\right )} \log \left (-b + \frac {{\left (b x + a\right )} d}{d x + c}\right )}{b^{2} d} - \frac {{\left (i \, B b^{3} c^{3} n - 3 i \, B a b^{2} c^{2} d n + 3 i \, B a^{2} b c d^{2} n - i \, B a^{3} d^{3} n\right )} \log \left (\frac {b x + a}{d x + c}\right )}{b^{2} d}\right )} {\left (\frac {b c}{{\left (b c - a d\right )}^{2}} - \frac {a d}{{\left (b c - a d\right )}^{2}}\right )}^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {A+B\,\ln \left (e\,{\left (\frac {a+b\,x}{c+d\,x}\right )}^n\right )}{c\,i+d\,i\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________